#include "AbsUI/UICommand.qth"
#include "AbsUI/UICommand.moh"
#include <cassert>

namespace AbsUI
{

UICommand::~UICommand()
{
}

// ---------------------------------------------------------------------------------------------------------------------

UICommand::UICommand( QAction* pBoundAction )
: pAction_( pBoundAction)
{
	assert( NULL != pBoundAction);
	connect( pAction_, SIGNAL( triggered( bool)), this, SLOT( handleExecute( bool)));
}

// ---------------------------------------------------------------------------------------------------------------------

void UICommand::handleExecute( bool checked )
{
	this->execute( checked);
}

} // namespace AbsUI
